<?php

class MallSpecAttrsService
{
    //check obj
    /*
    *
    *  检验
    */
    public static function getObj($spec_id,$attr_id)
    {


       // $obj = MallSpecsAttrs::model()->find("attrs_id='".$attr_id."'andspecs_id = '"+$spec_id+"'");

        $obj  = MallSpecsAttrs::model()->find("attrs_id=:attrs_id and specs_id=:specs_id",
                     array(":attrs_id" => $attr_id,":specs_id"=>$spec_id));

        return $obj;




    }






}

?>